package com.ruoyi.logisticsmaster.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.logisticsmaster.mapper.LogisticsmasterMapper;
import com.ruoyi.logisticsmaster.domain.Logisticsmaster;
import com.ruoyi.logisticsmaster.service.ILogisticsmasterService;

/**
 * 物流订单Service业务层处理
 * 
 * @author sqlstudent
 * @date 2025-06-20
 */
@Service
public class LogisticsmasterServiceImpl implements ILogisticsmasterService 
{
    @Autowired
    private LogisticsmasterMapper logisticsmasterMapper;

    /**
     * 查询物流订单
     * 
     * @param logisticsId 物流订单主键
     * @return 物流订单
     */
    @Override
    public Logisticsmaster selectLogisticsmasterByLogisticsId(String logisticsId)
    {
        return logisticsmasterMapper.selectLogisticsmasterByLogisticsId(logisticsId);
    }

    /**
     * 查询物流订单列表
     * 
     * @param logisticsmaster 物流订单
     * @return 物流订单
     */
    @Override
    public List<Logisticsmaster> selectLogisticsmasterList(Logisticsmaster logisticsmaster)
    {
        return logisticsmasterMapper.selectLogisticsmasterList(logisticsmaster);
    }

    /**
     * 新增物流订单
     * 
     * @param logisticsmaster 物流订单
     * @return 结果
     */
    @Override
    public int insertLogisticsmaster(Logisticsmaster logisticsmaster)
    {
        return logisticsmasterMapper.insertLogisticsmaster(logisticsmaster);
    }

    /**
     * 修改物流订单
     * 
     * @param logisticsmaster 物流订单
     * @return 结果
     */
    @Override
    public int updateLogisticsmaster(Logisticsmaster logisticsmaster)
    {
        return logisticsmasterMapper.updateLogisticsmaster(logisticsmaster);
    }

    /**
     * 批量删除物流订单
     * 
     * @param logisticsIds 需要删除的物流订单主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsmasterByLogisticsIds(String[] logisticsIds)
    {
        return logisticsmasterMapper.deleteLogisticsmasterByLogisticsIds(logisticsIds);
    }

    /**
     * 删除物流订单信息
     * 
     * @param logisticsId 物流订单主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsmasterByLogisticsId(String logisticsId)
    {
        return logisticsmasterMapper.deleteLogisticsmasterByLogisticsId(logisticsId);
    }
}
